package cn.edu.cug.cs.gtl.plugins.redner4oi.nodes;

import cn.edu.cug.cs.gtl.apis.render.nodes.MaterialBinding;
import com.openinventor.inventor.nodes.SoMaterialBinding;

public class MaterialBindingImpl extends NodeImpl implements MaterialBinding {
    public MaterialBindingImpl() {
        super();
        this.nativeObject= new SoMaterialBinding();
    }

    public MaterialBindingImpl(SoMaterialBinding binding) {
        super();
        this.nativeObject= binding;
    }

    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof SoMaterialBinding)
            this.nativeObject = (SoMaterialBinding)nativeObject;
        else
            return false;

        return true;
    }
}
